<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import ="org.jamwiki.servlets.*,org.jamwiki.authentication.*,org.jamwiki.model.*" %> 
<%@ include file="include.jsp"%>
<% 
WikiUserAuth user = ServletUtil.currentUser();
org.jamwiki.utils.DateUtil dateUtil = new org.jamwiki.utils.DateUtil();
String cdate = dateUtil.GetDate();
String fullDate = dateUtil.getWeekDayName(cdate); 
 
%>
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"> 
 <script >
 function loginPage(){
     var frame = parent.document.getElementById('cmiddle').document.getElementById('ContentFrame');
     var url = "<%=basePath%>en/Special:Login" 
     if(null != frame)
        frame.src= url;
    
 }
 function loadIndex(){
    parent.document.location.href="<%=request.getContextPath()%>/loginIndex.jsp";
 }
 </script>
  </head>
  <body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
  <table cellpadding="0" cellspacing="0" border="0"><tr><td>
  <table width="1005" border="0" align="center" cellpadding="0" cellspacing="0" class="table-lr" id="navi">
    <tr> 
      <td width="2%" height="29" background="<%=imagePath %>home_05.gif">&nbsp;</td>
      <td width="48%" align="left" background="<%=imagePath %>home_05.gif" class="txt-blue"><%if(!ServletUtil.isLogin()){out.print("");}else{out.print("欢迎：");}%><span class="word-orange"><%if(!ServletUtil.isLogin()){out.print("");}else{out.print(user.getDisplayName());}%></span> <%=cdate%>&nbsp;&nbsp;<%=fullDate %></td>
      <td width="49%" align="right" background="<%=imagePath %>home_05.gif" class="txt-blue">
      <a href="javaScript:loadIndex();" class="txt-blue"   >&nbsp;首页&nbsp;</a>|
      <%if(ServletUtil.isLogin()){ %><a href="<%=basePath%>en/Special:Watchlist" target='ContentFrame' class="txt-blue">&nbsp;个人知识库&nbsp;</a>
      <%if(ServletUtil.isAdmin()){ %>|<a href="<%=basePath%>en/Special:user?function=userList" target='ContentFrame' class="txt-blue">&nbsp;系统管理&nbsp;</a><%} }%>
      <%if(!ServletUtil.isLogin()){%><a href="<%=basePath%>en/Special:Login" target='ContentFrame' class="txt-blue">&nbsp;登陆&nbsp;</a>|
      <a href="<%=basePath%>en/Special" target='ContentFrame' class="txt-blue">&nbsp;&nbsp;</a><%}else{ %>
      <a href="<%=basePath%>en/Special" target='ContentFrame' class="txt-blue">&nbsp;&nbsp;</a><%} %>  </td>
      <td width="2%" background="<%=imagePath %>home_05.gif">&nbsp;</td>
    </tr>
  </table>
  </td></tr>
  <tr><td>
  <table width="1005" border="0" align="center" cellpadding="0" cellspacing="0" class="table-lr" id="line">
    <tr>
      <td><img src="<%=imagePath %>home_06.gif"  width="1003" height="6" /></td>
    </tr>
  </table>
  </td></tr></table>
  </body>
  </html>

